package com.cans;

/**
 * 审批功能测试
 *
 * @author cans
 * @date 2022/4/26
 **/
public class ApproveTest {

    public static void main(String[] args) {
        ManagerApprove managerApprove = new ManagerApprove();
        ChiefApprove chiefApprove = new ChiefApprove();
        PresidentApprove presidentApprove = new PresidentApprove();
        managerApprove.nextApprove(chiefApprove);
        chiefApprove.nextApprove(presidentApprove);

        managerApprove.sendApprove("路人甲", 100D);
        managerApprove.sendApprove("炮灰已", 3000D);
        managerApprove.sendApprove("流氓丙", 13000D);
    }
}
